package com.roc.steelend.service.Impl;


import com.roc.steelend.mapper.UnitMapper;
import com.roc.steelend.pojo.Unit;
import com.roc.steelend.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class UnitServiceImpl implements UnitService {

    @Autowired
    private UnitMapper unitMapper;
    @Override
    public List<Unit> findAllUnit() {
        return unitMapper.selectList(null);
    }
}
